package com.heima.com;

public class Demo1 {
    public static void main(String[] args) {
        int s = sumAdd(1,2,3,4,5);
        System.out.println(s);
    }
    public static int sumAdd(int...arr){
        int sum=0;
        for (int i = 0; i < arr.length; i++) {
            sum = sum +arr[i];
        }
        return sum;

    }
}
